package api;

import api.connection.DBConnection;
import api.result.Result;

public abstract class Loader {
    protected double scaleFactor;

    public double getScaleFactor() {
        return scaleFactor;
    }

    public Loader(double scaleFactor) {
        this.scaleFactor = scaleFactor;
    }

    /***
     * 通过Connection开始装载数据
     * @param connection 实例化的connection或client
     * @return
     */
    public abstract Result loadData(DBConnection connection);
}
